package aiku.numericalcontroloa.Controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import aiku.numericalcontroloa.Base.Utils.Result;
import aiku.numericalcontroloa.Model.Dto.wagesDto;
import aiku.numericalcontroloa.Service.Impl.wagesServiceImp;

@RestController
@RequestMapping("/wages")
public class wagesController {

    @Autowired
    private wagesServiceImp wages;

    @PostMapping("/addWages")
    public Result addWages(@RequestBody wagesDto data) {
        return wages.addWages(data);
    }

    @PostMapping("/selectWages")
    public Result selectWages(@RequestBody wagesDto data) {
        return wages.selectWages(data);

    }

    @PostMapping("/deleteWages")
    public Result deleteWages(@RequestBody wagesDto data) {
        return wages.deleteWages(data);

    }

    @PostMapping("/updateWages")
    public Result updateWages(@RequestBody wagesDto data) {
        return wages.updateWages(data);

    }

}
